package org.openea.eap.module.obpm.model.custsql;

import org.openbpm.base.core.model.BaseModel;

/**
 * 定制SQL列表字段配置
 *
 */
@lombok.Data
public class FormCustSqlFields
        extends BaseModel {
    private static final long serialVersionUID = -8115461651252267034L;

    private String sqlId;
    private String name;  //字段别名fieldAlias
    private String fieldName;  //字段名
    private String fieldDesc;  //字段描述/字段标题
    private String fieldGroup;  //字段分组名称，用于列表二级表头
    private String tableName;  //表名
    private String tableAlias; //表别名

    private String dataType;  //数据类型
    private Integer controlType;  //控件类型

    private String expand;    //扩展字段 json
    private Integer sn;    //顺序号

    private String dateFormat;  //优化为 格式化数据 expand.dataFormat, 样式格式化 expand.styleFormat

    private String href;   //链接
    private String align;  //对齐方式
    private Integer hidden;  //是否隐藏
    private String unit;
    private String width;
    private Integer colPrecision;
    private Integer colScale;

    private Integer addAble;     //可新增？
    private Integer editAble;    //可编辑？
    private Integer importAble;  //可导入？
    private Integer exportAble;  //可导出？
    private String rules;
    private String placeholder;
    private String fuzz;   //脱敏规则，如3,4 表示保留前3后4

    private String creator;
    private String updator;
}
